package com.project.service;

import com.project.daos.PermissionMapper;
import com.project.entity.Permission;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PermissionService {

    @Autowired
    private PermissionMapper permissionMapper;

    public List<Permission> getPersByUser(Integer id, Integer pid){
        return permissionMapper.selPersByUser(id, pid);
    };
}
